package com.threeti.mecool.legacy.domain.model.acl;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/** 企业员工(可能来自于遗留人事系统) */
@Entity
@Table(name = "MD_EMP")
public class EmployeeLegacy  implements Serializable {
  @Id
  @Column(name="EMP_PK")
  private Long primaryKey;
  
  @Column(name="EMP_NAME")
  private String name;
  
  @Column(name="EMP_CODE")
  private String code;
  
  @Column(name="EMP_TITLE")
  private String titleWithinTheOrg;
  
  @Column(name="AD_ID")
  private Long adId;

  public Long getPrimaryKey() {
    return primaryKey;
  }

  public void setPrimaryKey(Long primaryKey) {
    this.primaryKey = primaryKey;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public Long getAdId() {
    return adId;
  }

  public void setAdId(Long adId) {
    this.adId = adId;
  }

  /** 取得在公司组织架构中的岗位Title */
  public String getTitleWithinTheOrg() {
    return titleWithinTheOrg;
  }

  public void setTitleWithinTheOrg(String titleWithinTheOrg) {
    this.titleWithinTheOrg = titleWithinTheOrg;
  }

  @Override
  public String toString() {
    return "EmployeeLegacy [primaryKey=" + primaryKey + ", name=" + name + ", code=" + code + ", titleWithinTheOrg="
        + titleWithinTheOrg + ", adId=" + adId + "]";
  }
  
  
}
